import request from '@/utils/request'
// 获取员工列表
export const reqGetemp = (params) => request.get('/sys/user', { params })
// 导出excel表格
export const reqExoirtExcel = () => request({
  url: '/sys/user/export',
  responseType: 'blob'
})

// 导出上传execl模板
export const reqGetTemPlate = () => request({
  url: '/sys/user/import/template',
  responseType: 'blob'
})
// 上传
export const requoptata = (data) => request.post('/sys/user/import', data)
// 删除
export const reqdelTmp = (id) => request.delete(`/sys/user/${id}`)
// 新增
export const reqsele = (data) => request.post('/sys/user', data)
// 回显
export const reqPutXg = (id) => request.get(`/sys/user/${id}`)

// 修改
export const reqPutHx = (data) => request.put(`/sys/user/${data.id}`, data)

// 已启用的角色
export const reqRoleEnvled = () => request.get('/sys/role/list/enabled')
